package com.zhaotianhao.check.comboserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 套餐表
 * </p>
 *
 * @author Z-7
 * @since 2022-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_combo")
@Document(indexName = "combo",type = "t_combo")
public class Combo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 套餐id
     */
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 套餐编码
     */
    private String comboCoding;

    /**
     * 套餐名称
     */
    private String comboName;

    /**
     * 性别
     * 0：男
     * 1：女
     * 2：不限
     */
    private Integer sex;

    /**
     * 套餐助记码
     */
    private String comboCode;

    /**
     * 套餐价格
     */
    private BigDecimal price;

    /**
     * 适用年龄
     */
    private String applyAge;

    /**
     * 套餐图片
     */
    private String img;

    /**
     * 套餐说明
     */
    private String comboExplain;

    /**
     * 注意事项
     */
    private String comboNotes;

    /**
     * 对应的检查组名称
     */
    @TableField(exist = false)
    private String groupNames;

    /**
     * 对应的检查组名称
     */
    @TableField(exist = false)
    private String itemNames;
}
